//按钮1
function nameAlreadyUsed_0(){
    showNotification('用户名称已被占用!', 5000)
}
//按钮2
function phoneAlreadyUsed_2(){
    showNotification('该手机号已被注册!', 5000)
}
//提示信息
function showNotification(message, duration) {
    var notification = document.createElement('div');
    notification.className = 'notification';
    notification.textContent = message;
    document.body.appendChild(notification);
    setTimeout(function () {
        notification.style.opacity = 0;
        setTimeout(function () {
            document.body.removeChild(notification);
        }, 3000);
    }, duration);
}